-- Global Variables
MAX_LIVES = 15
EXTRA_LIFE_SCORE = 250000
MAX_SCORES = 15
ASTEROID_POINTS = 10000
-- Add Comma to numbers function from CowThing on Facepunch.com in WAYWO v4 thread
function AddComma(n)
    local sn = tostring(n)
    sn = string.ToTable(sn)
     
    local tab = {}
    for i=0,#sn-1 do
         
        if i%3 == #sn%3 and !(i==0) then
            table.insert(tab, ",")
        end
        table.insert(tab, sn[i+1])
     
    end
	
	local resString = string.Implode("",tab)
	if string.Left(resString, 2) == "-," then
		resString = "-" .. string.Right(resString, string.len(resString) - 2)
	end
	
    return resString
end
